using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class FightLayer : MonoBehaviour
{
    [SerializeField] private Talk Talk;

    private void Awake()
    {
        EventMgr.EvtShowTalk.AddListener(ShowTalk);
    }

    private void OnDestroy()
    {
        EventMgr.EvtShowTalk.RemoveListener(ShowTalk);
    }

    private void Start()
    {
        Talk.gameObject.SetActive(false);
    }

    private void ShowTalk(string msg, int photo) {
        Talk.ShowTalk(msg, photo);
    }
}
